<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/6
 * Time: 19:09
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait VipCardTrait
{
    use BaseTrait;

    // Vip卡ID
    protected $id;
    // 秘钥验证
    protected $loginSession;
    // 会员卡名称
    protected $name;
    // 会员卡面额
    protected $denomination;
    // 会员卡最低续费
    protected $minimum_recharge;
    // 会员卡使用规则
    protected $summary;
    // 会员卡封面
    protected $cover;
    // 合作者ID
    protected $partner_id;
    // 会员卡ID
    protected $vip_card_id;
    // 合作者key
    protected $key;

    public function __construct(Request $request)
    {
        $this->id = $request->input('id', 0);
        $this->loginSession = $request->input('loginSession', '');
        $this->name = $request->input('name', '');
        $this->denomination = $request->input('denomination', 0);
        $this->minimum_recharge = $request->input('minimum_recharge', 0);
        $this->summary = $request->input('summary', '');
        $this->cover = $request->input('cover', '');
        $this->partner_id = $request->input('partner_id', 0);
        $this->vip_card_id =  $request->input('vip_card_id', 0);
        $this->key = $request->input('key', '');
    }

}